package com.blue.prepose.controller;

import com.blue.prepose.entity.PaymentRefund;
import com.blue.prepose.service.PaymentRefundService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 退款表(PaymentRefund)表控制层
 *
 * @author xiaoyiming
 * @since 2020-05-08 23:29:35
 */
@RestController
@RequestMapping("paymentRefund")
public class PaymentRefundController {
    /**
     * 服务对象
     */
    @Resource
    private PaymentRefundService paymentRefundService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PaymentRefund selectOne(Long id) {
        return this.paymentRefundService.queryById(id);
    }

}